#include "stdafx.h"
#include "FuncFind.h"
#include <mmsystem.h>



extern CGlobe g_global;

bool FuncFind(void* param, void* recogResult)
{
	PRECORESULT pRecoResult = (RECORESULT*)recogResult;

	HANDLE handle = (HANDLE)_beginthreadex(NULL, NULL, threadRecogDeal,\
										   pRecoResult, NULL, NULL);
	CloseHandle(handle);

	WaitForSingleObject(g_global.hRecogDeal, INFINITE);
	
	ResetEvent(g_global.hRecogDeal);

	return true;
}
